<%@ page import="Worker.WorkerDao" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="Course.CourseDao" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/17
  Time: 15:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>教师分配任务</title>
    <link href="/SystemerNav/SystemerNav.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<%
    String post=request.getParameter("post");
    WorkerDao workerDao=new WorkerDao();
    ArrayList<String> workerNoList=workerDao.getWorkerNo(post);
    CourseDao courseDao=new CourseDao();
    ArrayList<String> courseNoList=courseDao.getCourseNo();
%>
<body background="/LoginInterface/loginFace.jpg">
    <div class="container">
        <form action="/TeachLesson/addTeachLessonServlet" method="post" >
            请选择教师工号:<select name="workerNo">
                      <% for (String temp:workerNoList){%>
                      <option value="<%=temp%>"><%=temp%></option>
                    <% }%>
        </select><br>
            请选择课程号:<select name="courseNo">
            <% for (String temp:courseNoList){%>
            <option value="<%=temp%>"><%=temp%></option>
            <% }%>
        </select><br>
            <input type="submit" name="submit" value="分配任务">
            <a href="/TeachLesson/techLessonServlet" class="btn btn-default btn-lg active" role="button">查询分配信息</a>
        </form>
    </div>
</body>
</html>
